package org.jash.day3

import kotlin.properties.Delegates

/**
 * Created by Jash
 */
sealed class Person {
    var gender:Gender = Gender.Male
    val name by lazy {
        println("加载 name")
        "名字"
    }
    var age:Int by Delegates.observable(10) { _, old, new ->
        println("旧值: $old, 新值: $new")
    }
}